import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from './store'
import './styles/main.css'
import './styles/mobile.css'
import 'vant/lib/index.css'
import loading from './utils/loading'
// 导入自定义指令
import directives from './directives'

const app = createApp(App)

app.config.globalProperties.$loading = loading

app.use(router)
app.use(pinia)
app.use(directives) // 注册自定义指令
app.mount('#app')
